package com.bjut.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import com.bjut.action.base.BaseAction;

 

public class SearchListAction extends BaseAction {
	 
	@Override
	public ActionForward execute(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response)
			throws Exception {
		System.out.println("in searchlistAction................");
		String classname = "user";
		if (request.getParameter("classname") != "") {
			classname = request.getParameter("classname");
		}
		String hql = "from Employee";
		if (classname.equals("employee")) {
		}
		if (classname.equals("user")) {

		}

		return new ActionForward("/searchlist.jsp?classname=" + classname);
	}
}
